﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Inherits="Gio_Hang" Codebehind="Gio-Hang.aspx.cs" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .button {
            background:none;
	        font:inherit;
	        color:inherit;
	        cursor:pointer;
        }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <section id="content" class="clearfix">
    <div id="content-title">
        Giỏ hàng của bạn
    </div>
    <br />
        <asp:Label ID="lblThongBao2" ForeColor="#66FF99" Text="Sản phẩm chưa kèm thuế & phí vận chuyển" Font-Size="20px" runat="server"></asp:Label><br />
        <asp:Label ID="lblThongBao" ForeColor="#66FF99" Font-Size="20px" runat="server"></asp:Label>
    <asp:GridView ID="gv_InformationCart" runat="server" 
        AutoGenerateColumns="False" 
        CellPadding="4" 
        ForeColor="#333333" 
        GridLines="None" 
        Width="100%"
        OnRowCancelingEdit="gv_InformationCart_RowCancelingEdit"
        OnRowEditing="gv_InformationCart_RowEditing"
        OnRowUpdating="gv_InformationCart_RowUpdating"
        OnRowDeleting="gv_InformationCart_RowDeleting" ShowFooter="True">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="ProductID" HeaderText="Mã Sản Phẩm" ReadOnly="True" >
                <HeaderStyle Font-Size="15px" ForeColor="White" />
                <ItemStyle Font-Size="14px" ForeColor="Brown" />
            </asp:BoundField>
            <asp:BoundField DataField="ProductName" HeaderText="Tên Sản Phẩm" ReadOnly="True">
                <HeaderStyle Font-Size="15px" ForeColor="White" />
                <ItemStyle Font-Size="14px" ForeColor="Brown" />
            </asp:BoundField>
            <asp:BoundField DataField="UnitPrice" HeaderText="Giá" DataFormatString="{0:#,###,###}" ReadOnly="True" >
                <HeaderStyle Font-Size="15px" ForeColor="White" />
                <ItemStyle Font-Size="14px" ForeColor="Brown" />
            </asp:BoundField>
            
            <asp:TemplateField HeaderText="Số lượng">
                <EditItemTemplate>
                    <asp:TextBox ID="txtQuantity" runat="server" Text='<%#Bind("Quantity") %>'  Width="90px"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Quantity") %>' Font-Size="14px" />
                </ItemTemplate>
                <HeaderStyle Font-Size="15px" ForeColor="White" />
                <ItemStyle Font-Size="14px" ForeColor="Brown" />
            </asp:TemplateField>
            <asp:BoundField DataField="TotalAmount" HeaderText="Thành tiền" DataFormatString="{0:#,###,###}" ReadOnly="True" >
                <HeaderStyle Font-Size="15px" ForeColor="White" />
                <ItemStyle Font-Size="14px" ForeColor="Brown" />
            </asp:BoundField>
            <asp:CommandField ShowEditButton="True">
            <ItemStyle Font-Size="14px" />
            </asp:CommandField>
            <asp:CommandField ShowDeleteButton="True" >
            <ItemStyle Font-Size="14px" />
            </asp:CommandField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="14px" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        
    </asp:GridView>
    <br />
    <div style="float:right;">
    <span class="button-met dark">
        <asp:Button ID="btnPayment" 
            CssClass="button" Text="Thanh toán" 
            runat="server" BorderWidth="0px" OnClick="btnPayment_Click" />
    </span>&nbsp;
        <span class="button-met dark">
        <asp:Button ID="btnComeBack" 
            CssClass="button" Text="Trở lại mua hàng" 
            runat="server" BorderWidth="0px" OnClick="btnComeBack_Click" />
    </span>
        <br /><br />
        <asp:Label ID="lbThongBao" Text="" ForeColor="#ff0000" Font-Bold="true" Font-Size="14px" runat="server" />
    </div>
        
        

        <br /><br />
       
</section>
</asp:Content>

